package com.shaoyu.spring.study.validate.util;

/**
 * @Description:
 * @author: shaoyu1
 * @date: 2021/2/7 9:54:59
 */
public interface RegexpUtil {
    /**邮箱*/
    String EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
    /**电话号码*/
    String TEL = "^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$";
    /**身份证号码*/
    String ID_CARD_18 = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{4}$";
    /**密码*/
    String PW = "";
}
